'use strict';

const Koa = require('koa');
const Router = require('koa-router');
const server = new Koa();

const fs = require('fs');
const path = require('path');

const router = new Router();

router.get('/', (ctx, next) => {
    ctx.body = fs.readFileSync(path.join(__dirname, 'pwa_test.html'), {encoding: 'utf8'});
});

server.use(router.routes()).use(router.allowedMethods());

server.listen(8003);
